﻿using System.Linq;
using System.Windows;
using kursovaya.Data.Context;

namespace kursovaya.Windows
{
    public partial class TechniciansControl : Window
    {
        public TechniciansControl()
        {
            InitializeComponent();
            LoadTecnician();
        }

        private void LoadTecnician()
        {
            using (var context = new DbContext())
            {
                var technicians = context.Technicians.ToList();
                TecniciansDataGrid.ItemsSource = technicians;
            }
        }
    }
}